package com.zj.osm.view.project.projectdetail.fragment;

import android.graphics.Color;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

import com.zj.osm.R;
import com.zj.osm.view.BaseFragment;


/**
 * 地形点
 *
 * 本地項目詳情中的fragment
 */
public class CrossFragment extends BaseFragment implements View.OnClickListener {

    @Override
    protected int getContentViewLayoutID() {
        return R.layout.fragment_cross;
    }

    protected void initView(View view) {

        ImageButton detailsBtnBack = view.findViewById(R.id.detailsBtnBack);
        detailsBtnBack.setOnClickListener(this);
        TextView detailsTvOne = view.findViewById(R.id.detailsTvOne);
        detailsTvOne.setOnClickListener(this);
        TextView detailsTvTwo = view.findViewById(R.id.detailsTvTwo);
        detailsTvTwo.setOnClickListener(this);
        Button detailsBtnJc = view.findViewById(R.id.detailsBtnJc);
        detailsBtnJc.setOnClickListener(this);
        Button detailsBtnKcxx = view.findViewById(R.id.detailsBtnKcxx);
        detailsBtnKcxx.setOnClickListener(this);
        Button detailsBtnWlqd = view.findViewById(R.id.detailsBtnWlqd);
        detailsBtnWlqd.setOnClickListener(this);
        Button detailsBtnGdfa = view.findViewById(R.id.detailsBtnGdfa);
        detailsBtnGdfa.setOnClickListener(this);
        detailsBtnJc.setBackgroundResource(R.drawable.btn_shape_white);
        detailsBtnKcxx.setBackgroundResource(R.drawable.btn_shape_white);
        detailsBtnWlqd.setBackgroundResource(R.drawable.btn_shape_white);
        detailsBtnGdfa.setBackgroundResource(R.drawable.btn_shape);
        detailsBtnJc.setTextColor(Color.rgb(51, 51, 51));
        detailsBtnKcxx.setTextColor(Color.rgb(51, 51, 51));
        detailsBtnWlqd.setTextColor(Color.rgb(51, 51, 51));
        detailsBtnGdfa.setTextColor(Color.rgb(255, 255, 255));
        new BasisFragment().clickItem(this, detailsBtnBack, detailsBtnJc, detailsBtnKcxx, detailsBtnWlqd, detailsBtnGdfa);
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void initListener() {

    }
}
